go/types.Interface.typeSet (method)
38 uses
go/types (current package)
infer.go#L609: tset := t.typeSet()
instantiate.go#L274: if Vi != nil && Vi.typeSet().IsEmpty() {
instantiate.go#L280: if Ti.typeSet().IsEmpty() {
instantiate.go#L325: if !Ti.typeSet().hasTerms() {
instantiate.go#L333: if !Vi.typeSet().subsetOf(Ti.typeSet()) {
instantiate.go#L345: if Ti.typeSet().is(func(t *term) bool {
instantiate.go#L369: detail = check.sprintf("%s missing in %s", V, Ti.typeSet().terms)
interface.go#L29: func (t *Interface) typeSet() *_TypeSet { return computeInterfaceTypeSet(t.check, nopos, t) }
interface.go#L113: func (t *Interface) NumMethods() int { return t.typeSet().NumMethods() }
interface.go#L117: func (t *Interface) Method(i int) *Func { return t.typeSet().Method(i) }
interface.go#L120: func (t *Interface) Empty() bool { return t.typeSet().IsAll() }
interface.go#L123: func (t *Interface) IsComparable() bool { return t.typeSet().IsComparable(nil) }
interface.go#L127: func (t *Interface) IsMethodSet() bool { return t.typeSet().IsMethodSet() }
interface.go#L143: t.typeSet() // checks if t.tset is already set
interface.go#L154: t.typeSet() // any interface that escapes type checking must be safe for concurrent use
lookup.go#L201: if i, m := t.typeSet().LookupMethod(pkg, name, foldCase); m != nil {
lookup.go#L338: methods := under(T).(*Interface).typeSet().methods // T must be an interface
lookup.go#L359: tset := u.typeSet()
methodset.go#L158: mset = mset.add(t.typeSet().methods, e.index, true, e.multiples)
named.go#L696: iface.typeSet()
predicates.go#L197: if dynamic && !isTypeParam(T) || t.typeSet().IsComparable(seen) {
predicates.go#L201: if t.typeSet().IsEmpty() {
predicates.go#L404: xset := x.typeSet()
predicates.go#L405: yset := y.typeSet()
subst.go#L223: iface.typeSet()
typeparam.go#L158: return t.iface().typeSet().is(f)
typeparam.go#L166: t.iface().typeSet().typeset(yield)
typeset.go#L186: check.trace(pos, "=> %s ", ityp.typeSet())
typestring.go#L242: w.typeSet(t.typeSet())
unify.go#L397: if len(xi.typeSet().methods) != len(yi.typeSet().methods) {
unify.go#L467: xset := xi.typeSet()
unify.go#L468: yset := yi.typeSet()
unify.go#L540: xmethods := xi.typeSet().methods
unify.go#L667: xset := x.typeSet()
unify.go#L668: yset := y.typeSet()
union.go#L116: tset := f.typeSet()